package com.xiaotu.test;

import org.apache.commons.lang.StringUtils;

import redis.clients.jedis.Jedis;

public class RedisData {
	public static void main(String[] args) {
		Jedis jedis = new Jedis("127.0.0.1",6379);
		jedis.select(3);
		for(int i=0;i<5000;i++) {
			jedis.hset("myhash"+i, "field_"+i, i+StringUtils.EMPTY);
		}
		
		System.out.println("执行完毕");
		
		jedis.close();
		
	}
}
